﻿using Ninject.Modules;

using System.Net.DnsToolkit.Resolver;

namespace System.Net.DnsToolkit.Configuration {

    public class ServerResolverModule : NinjectModule {
        public override void Load() {

            Bind<IResolver>().To<ServerResolver>();
            Bind<IDnsSocket>().To<AsyncDnsSocket>();
            Bind<IQueryBuilder>().To<INAQueryBuilder>();
            Bind<IHeaderIdGenerator>().To<RandomHeaderId>();
            Bind<IAnswerParser>().To<FirstAnswerParser>();
            Bind<IDnsServerProvider>().To<WmiDnsServerProvider>();
            

        }
    }
}
